class Animal:

    def eat(self):
        print("吃")

    def drink(self):
        print("喝")

    def run(self):
        print("跑")

    def sleep(self):
        print("睡")


class Dog(Animal):

    def bark(self):
        print("汪汪叫")


class Cat(Animal):

    def catch(self):
        print("我会抓鱼")


class XiaoTianQuan(Dog):

    def fly(self):
        print("我会飞")

# 创建一个对象 - 狗对象
wangcai = Dog()
wangcai.eat()
wangcai.drink()
wangcai.run()
wangcai.sleep()
wangcai.bark()

# 创建一个对象 - 猫对象
mimi = Cat()
mimi.catch()

# 创建一个对象 - 哮天犬对象
xiaotian = XiaoTianQuan()
xiaotian.fly()